<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TFileChooser类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_file_chooser.html">TFileChooser</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_t_file_chooser-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">awtk.TFileChooser类 参考</div></div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TFileChooser 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_t_file_chooser.png" usemap="#awtk.TFileChooser_map" alt=""/>
  <map id="awtk.TFileChooser_map" name="awtk.TFileChooser_map">
<area href="classawtk_1_1_t_emitter.html" alt="awtk.TEmitter" shape="rect" coords="0,0,117,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a07a57bfb180d879184332014a31b2d94" id="r_a07a57bfb180d879184332014a31b2d94"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a07a57bfb180d879184332014a31b2d94">TFileChooser</a> (long <a class="el" href="classawtk_1_1_t_emitter.html#a3dfef6f3db53335a00cb479e90262840">nativeObj</a>)</td></tr>
<tr class="separator:a07a57bfb180d879184332014a31b2d94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4434679549d24d28f7b6cd0bf275406" id="r_ab4434679549d24d28f7b6cd0bf275406"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab4434679549d24d28f7b6cd0bf275406">setInitDir</a> (String init_dir)</td></tr>
<tr class="separator:ab4434679549d24d28f7b6cd0bf275406"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb894e7e8c0bc295643ef03c80e20bdb" id="r_abb894e7e8c0bc295643ef03c80e20bdb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abb894e7e8c0bc295643ef03c80e20bdb">setTopDir</a> (String top_dir)</td></tr>
<tr class="separator:abb894e7e8c0bc295643ef03c80e20bdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb76fd0dc3ada622fe8a8a7d352055d3" id="r_adb76fd0dc3ada622fe8a8a7d352055d3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#adb76fd0dc3ada622fe8a8a7d352055d3">setFilter</a> (String filter)</td></tr>
<tr class="separator:adb76fd0dc3ada622fe8a8a7d352055d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3302e4296572b105a5b23f9341d51498" id="r_a3302e4296572b105a5b23f9341d51498"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3302e4296572b105a5b23f9341d51498">chooseFileForSave</a> ()</td></tr>
<tr class="separator:a3302e4296572b105a5b23f9341d51498"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d32af90f1a8380d86ad3babf4160649" id="r_a4d32af90f1a8380d86ad3babf4160649"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4d32af90f1a8380d86ad3babf4160649">chooseFileForOpen</a> ()</td></tr>
<tr class="separator:a4d32af90f1a8380d86ad3babf4160649"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37953a2f48682096e6cff58884551525" id="r_a37953a2f48682096e6cff58884551525"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a37953a2f48682096e6cff58884551525">chooseFolder</a> ()</td></tr>
<tr class="separator:a37953a2f48682096e6cff58884551525"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad214f924a7c6bea0aea6d39a32f26705" id="r_ad214f924a7c6bea0aea6d39a32f26705"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad214f924a7c6bea0aea6d39a32f26705">getDir</a> ()</td></tr>
<tr class="separator:ad214f924a7c6bea0aea6d39a32f26705"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b23e4f04224a00fe26ae0eaf9e7d035" id="r_a5b23e4f04224a00fe26ae0eaf9e7d035"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5b23e4f04224a00fe26ae0eaf9e7d035">getFilename</a> ()</td></tr>
<tr class="separator:a5b23e4f04224a00fe26ae0eaf9e7d035"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e26c30bc1f7096e27cd01cc2b8c8d9c" id="r_a6e26c30bc1f7096e27cd01cc2b8c8d9c"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6e26c30bc1f7096e27cd01cc2b8c8d9c">isAborted</a> ()</td></tr>
<tr class="separator:a6e26c30bc1f7096e27cd01cc2b8c8d9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classawtk_1_1_t_emitter"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_methods_classawtk_1_1_t_emitter')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classawtk_1_1_t_emitter.html">awtk.TEmitter</a></td></tr>
<tr class="memitem:ae4e311959d07b2c5acb8a4a8aba394e0 inherit pub_methods_classawtk_1_1_t_emitter" id="r_ae4e311959d07b2c5acb8a4a8aba394e0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_emitter.html#ae4e311959d07b2c5acb8a4a8aba394e0">TEmitter</a> (long <a class="el" href="classawtk_1_1_t_emitter.html#a3dfef6f3db53335a00cb479e90262840">nativeObj</a>)</td></tr>
<tr class="separator:ae4e311959d07b2c5acb8a4a8aba394e0 inherit pub_methods_classawtk_1_1_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe4f9d4a120ad6f3e81cafa2764fa601 inherit pub_methods_classawtk_1_1_t_emitter" id="r_abe4f9d4a120ad6f3e81cafa2764fa601"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_emitter.html#abe4f9d4a120ad6f3e81cafa2764fa601">dispatch</a> (<a class="el" href="classawtk_1_1_t_event.html">TEvent</a> e)</td></tr>
<tr class="separator:abe4f9d4a120ad6f3e81cafa2764fa601 inherit pub_methods_classawtk_1_1_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d384e935cde6cc973b35162325d56fa inherit pub_methods_classawtk_1_1_t_emitter" id="r_a2d384e935cde6cc973b35162325d56fa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_emitter.html#a2d384e935cde6cc973b35162325d56fa">dispatchSimpleEvent</a> (int type)</td></tr>
<tr class="separator:a2d384e935cde6cc973b35162325d56fa inherit pub_methods_classawtk_1_1_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23c16a696dd21aaf3ecc8453b6941869 inherit pub_methods_classawtk_1_1_t_emitter" id="r_a23c16a696dd21aaf3ecc8453b6941869"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_emitter.html#a23c16a696dd21aaf3ecc8453b6941869">on</a> (int etype, TOnEvent handler, long ctx)</td></tr>
<tr class="separator:a23c16a696dd21aaf3ecc8453b6941869 inherit pub_methods_classawtk_1_1_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4515856b77cd3f885a2fd628e4801ab7 inherit pub_methods_classawtk_1_1_t_emitter" id="r_a4515856b77cd3f885a2fd628e4801ab7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_emitter.html#a4515856b77cd3f885a2fd628e4801ab7">off</a> (int id)</td></tr>
<tr class="separator:a4515856b77cd3f885a2fd628e4801ab7 inherit pub_methods_classawtk_1_1_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac74c2f4cb04791b650ad9c54b2b13707 inherit pub_methods_classawtk_1_1_t_emitter" id="r_ac74c2f4cb04791b650ad9c54b2b13707"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_emitter.html#ac74c2f4cb04791b650ad9c54b2b13707">enable</a> ()</td></tr>
<tr class="separator:ac74c2f4cb04791b650ad9c54b2b13707 inherit pub_methods_classawtk_1_1_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a943c4ba9c3a7feb93e02a6fa8f0ed834 inherit pub_methods_classawtk_1_1_t_emitter" id="r_a943c4ba9c3a7feb93e02a6fa8f0ed834"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_emitter.html#a943c4ba9c3a7feb93e02a6fa8f0ed834">disable</a> ()</td></tr>
<tr class="separator:a943c4ba9c3a7feb93e02a6fa8f0ed834 inherit pub_methods_classawtk_1_1_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a363332f4f679bcb99af877bc4f161097 inherit pub_methods_classawtk_1_1_t_emitter" id="r_a363332f4f679bcb99af877bc4f161097"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_emitter.html#a363332f4f679bcb99af877bc4f161097">destroy</a> ()</td></tr>
<tr class="separator:a363332f4f679bcb99af877bc4f161097 inherit pub_methods_classawtk_1_1_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a3c1aebee88a59cb0006a2f6f3054f5df" id="r_a3c1aebee88a59cb0006a2f6f3054f5df"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_file_chooser.html">TFileChooser</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3c1aebee88a59cb0006a2f6f3054f5df">cast</a> (long <a class="el" href="classawtk_1_1_t_emitter.html#a3dfef6f3db53335a00cb479e90262840">nativeObj</a>)</td></tr>
<tr class="separator:a3c1aebee88a59cb0006a2f6f3054f5df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af92f440578bf7c143b2364cd29bdde00" id="r_af92f440578bf7c143b2364cd29bdde00"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_file_chooser.html">TFileChooser</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af92f440578bf7c143b2364cd29bdde00">create</a> ()</td></tr>
<tr class="separator:af92f440578bf7c143b2364cd29bdde00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0fffdd4138226f932aaa503e421d00ba" id="r_a0fffdd4138226f932aaa503e421d00ba"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_file_chooser.html">TFileChooser</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0fffdd4138226f932aaa503e421d00ba">cast</a> (<a class="el" href="classawtk_1_1_t_file_chooser.html">TFileChooser</a> chooser)</td></tr>
<tr class="separator:a0fffdd4138226f932aaa503e421d00ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_classawtk_1_1_t_emitter"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_static_methods_classawtk_1_1_t_emitter')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="classawtk_1_1_t_emitter.html">awtk.TEmitter</a></td></tr>
<tr class="memitem:a77409663ac9dc08f2625dd38b6120f44 inherit pub_static_methods_classawtk_1_1_t_emitter" id="r_a77409663ac9dc08f2625dd38b6120f44"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_emitter.html">TEmitter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_emitter.html#a77409663ac9dc08f2625dd38b6120f44">cast</a> (<a class="el" href="classawtk_1_1_t_emitter.html">TEmitter</a> emitter)</td></tr>
<tr class="separator:a77409663ac9dc08f2625dd38b6120f44 inherit pub_static_methods_classawtk_1_1_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_attribs_classawtk_1_1_t_emitter"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_attribs_classawtk_1_1_t_emitter')"><img src="closed.png" alt="-"/>&#160;Public 属性 继承自 <a class="el" href="classawtk_1_1_t_emitter.html">awtk.TEmitter</a></td></tr>
<tr class="memitem:a3dfef6f3db53335a00cb479e90262840 inherit pub_attribs_classawtk_1_1_t_emitter" id="r_a3dfef6f3db53335a00cb479e90262840"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_emitter.html#a3dfef6f3db53335a00cb479e90262840">nativeObj</a></td></tr>
<tr class="separator:a3dfef6f3db53335a00cb479e90262840 inherit pub_attribs_classawtk_1_1_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>文件/目录选择器 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a07a57bfb180d879184332014a31b2d94" name="a07a57bfb180d879184332014a31b2d94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07a57bfb180d879184332014a31b2d94">&#9670;&#160;</a></span>TFileChooser()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TFileChooser.TFileChooser </td>
          <td>(</td>
          <td class="paramtype">long</td>          <td class="paramname"><span class="paramname"><em>nativeObj</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a3c1aebee88a59cb0006a2f6f3054f5df" name="a3c1aebee88a59cb0006a2f6f3054f5df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c1aebee88a59cb0006a2f6f3054f5df">&#9670;&#160;</a></span>cast() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_file_chooser.html">TFileChooser</a> awtk.TFileChooser.cast </td>
          <td>(</td>
          <td class="paramtype">long</td>          <td class="paramname"><span class="paramname"><em>nativeObj</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

<p>重载 <a class="el" href="classawtk_1_1_t_emitter.html#a22052354ddd6d3e7a5ae7ce0fa3654a6">awtk.TEmitter</a> .</p>

</div>
</div>
<a id="a0fffdd4138226f932aaa503e421d00ba" name="a0fffdd4138226f932aaa503e421d00ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0fffdd4138226f932aaa503e421d00ba">&#9670;&#160;</a></span>cast() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_file_chooser.html">TFileChooser</a> awtk.TFileChooser.cast </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classawtk_1_1_t_file_chooser.html">TFileChooser</a></td>          <td class="paramname"><span class="paramname"><em>chooser</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为file_chooser对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">chooser</td><td>file_chooser对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a4d32af90f1a8380d86ad3babf4160649" name="a4d32af90f1a8380d86ad3babf4160649"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d32af90f1a8380d86ad3babf4160649">&#9670;&#160;</a></span>chooseFileForOpen()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TFileChooser.chooseFileForOpen </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>为了打开而选择文件。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a3302e4296572b105a5b23f9341d51498" name="a3302e4296572b105a5b23f9341d51498"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3302e4296572b105a5b23f9341d51498">&#9670;&#160;</a></span>chooseFileForSave()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TFileChooser.chooseFileForSave </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>为了保存而选择文件。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a37953a2f48682096e6cff58884551525" name="a37953a2f48682096e6cff58884551525"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37953a2f48682096e6cff58884551525">&#9670;&#160;</a></span>chooseFolder()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TFileChooser.chooseFolder </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>选择目录。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af92f440578bf7c143b2364cd29bdde00" name="af92f440578bf7c143b2364cd29bdde00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af92f440578bf7c143b2364cd29bdde00">&#9670;&#160;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_file_chooser.html">TFileChooser</a> awtk.TFileChooser.create </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建file_chooser对象</p>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

<p>重载 <a class="el" href="classawtk_1_1_t_emitter.html#a068f5e211a8daecdfa4b784e5591ac35">awtk.TEmitter</a> .</p>

</div>
</div>
<a id="ad214f924a7c6bea0aea6d39a32f26705" name="ad214f924a7c6bea0aea6d39a32f26705"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad214f924a7c6bea0aea6d39a32f26705">&#9670;&#160;</a></span>getDir()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TFileChooser.getDir </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取目录。</p>
<dl class="section return"><dt>返回</dt><dd>返回选择的目录。 </dd></dl>

</div>
</div>
<a id="a5b23e4f04224a00fe26ae0eaf9e7d035" name="a5b23e4f04224a00fe26ae0eaf9e7d035"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b23e4f04224a00fe26ae0eaf9e7d035">&#9670;&#160;</a></span>getFilename()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TFileChooser.getFilename </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取文件名。</p>
<dl class="section return"><dt>返回</dt><dd>返回选择的文件名。 </dd></dl>

</div>
</div>
<a id="a6e26c30bc1f7096e27cd01cc2b8c8d9c" name="a6e26c30bc1f7096e27cd01cc2b8c8d9c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e26c30bc1f7096e27cd01cc2b8c8d9c">&#9670;&#160;</a></span>isAborted()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TFileChooser.isAborted </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>用户是否取消了选择。</p>
<dl class="section return"><dt>返回</dt><dd>返回用户是否取消了选择。 </dd></dl>

</div>
</div>
<a id="adb76fd0dc3ada622fe8a8a7d352055d3" name="adb76fd0dc3ada622fe8a8a7d352055d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb76fd0dc3ada622fe8a8a7d352055d3">&#9670;&#160;</a></span>setFilter()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TFileChooser.setFilter </td>
          <td>(</td>
          <td class="paramtype">String</td>          <td class="paramname"><span class="paramname"><em>filter</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置过滤规则。 </p><blockquote class="doxtable">
<p>files_only 表示只列出文件，dir_only 表示只列出目录，其它表示只列出满足扩展名文件集合(如：.jpg.png.gif)。 </p>
</blockquote>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>过滤规则。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ab4434679549d24d28f7b6cd0bf275406" name="ab4434679549d24d28f7b6cd0bf275406"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab4434679549d24d28f7b6cd0bf275406">&#9670;&#160;</a></span>setInitDir()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TFileChooser.setInitDir </td>
          <td>(</td>
          <td class="paramtype">String</td>          <td class="paramname"><span class="paramname"><em>init_dir</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置初始目录。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">init_dir</td><td>初始目录</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="abb894e7e8c0bc295643ef03c80e20bdb" name="abb894e7e8c0bc295643ef03c80e20bdb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb894e7e8c0bc295643ef03c80e20bdb">&#9670;&#160;</a></span>setTopDir()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TFileChooser.setTopDir </td>
          <td>(</td>
          <td class="paramtype">String</td>          <td class="paramname"><span class="paramname"><em>top_dir</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置初始目录。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">top_dir</td><td>初始目录</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<b>TFileChooser.java</b></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2
</small></address>
</div><!-- doc-content -->
</body>
</html>
